<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>编辑</title>
		<link rel="stylesheet" type="text/css" href="../../plugins/layui/css/layui.css" />
		<link href="../../kitAdmin/css/app.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="../../plugins/select2/dist/css/select2.min.css"/>
	</head>

	<body>
		<div class='kit-table'>
			<div style='margin:10px'>
				
		<form class='layui-form' action='' lay-filter='form-edit'>
			<input type='hidden' name='id'  data-link='{:id}' />
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>name</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:name}' id='_name' name='name' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>周一</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:mon}' id='_mon' name='mon' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>周二</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:tue}' id='_tue' name='tue' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>周三</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:wed}' id='_wed' name='wed' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>周四</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:thu}' id='_thu' name='thu' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>周五</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:fri}' id='_fri' name='fri' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>周六</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:sat}' id='_sat' name='sat' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>周日</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:sun}' id='_sun' name='sun' class='layui-input'>
					</div>
				</div>
			</div>
		</form>
			</div>
		</div>
		<script src="../../common/js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../static/js/base.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../plugins/jsviews/jsviews.js" type="text/javascript"></script>
		<script src="../../plugins/select2/dist/js/select2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var techerid = getQueryVariable('techerid');
			jQuery(document).ready(function() {
				alert(techerid);
//				bindFormData();
			});
			var callback_save=function(){
				return $('.layui-form').serialize();
			}
			function bindFormData(){
				if(uid){
					$.ajax({
						url:baseUrl+'/periods/'+uid,
						type:'get',
						success:function(data){
							$.link(true, ".kit-table", data.data);
							$('select').select2().change();
						},
						error:function(){
							parent.layer.alert('系统或网络错误！');
						}
					});
				}
			}
		</script>
	</body>

</html>
